package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 资源表 实体类
 * 表名：haifan_resource
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "haifan_resource")
public class HaifanResource implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 资源名称
     */
    @Column(name = "resource_name", nullable = false, length = 100)
    private String resourceName;
    
    @Override
    public String toString() {
        return "HaifanResource{" +
            "id=" + id +
            ", resourceName=" + resourceName +
        '}';
    }
} 